import request from '@/utils/request'

// 查询宣传信息删除列表
export function listRecord(query) {
  return request({
    url: '/kyga/record/list',
    method: 'get',
    params: query
  })
}

// 查询宣传信息删除详细
export function getRecord(user) {
  return request({
    url: '/kyga/record/' + user,
    method: 'get'
  })
}

// 新增宣传信息删除
export function addRecord(data) {
  return request({
    url: '/kyga/record',
    method: 'post',
    data: data
  })
}

// 修改宣传信息删除
export function updateRecord(data) {
  return request({
    url: '/kyga/record',
    method: 'put',
    data: data
  })
}

// 删除宣传信息删除
export function delRecord(user) {
  return request({
    url: '/kyga/record/' + user,
    method: 'delete'
  })
}

// 导出宣传信息删除
export function exportRecord(query) {
  return request({
    url: '/kyga/record/export',
    method: 'get',
    params: query
  })
}